import { Schema } from "@nestjs/mongoose";
import { ApiProperty } from "@nestjs/swagger";

export class QueryParams {
    @ApiProperty({ description: '当前页码', example: 1 })
    page: number;

    @ApiProperty({ description: '当前页面大小', example: 10 })
    pageSize: number;

    @ApiProperty({ description: '视频名称', example: '示例视频1' })
    title: string;
}

export class createShaderType {
    @ApiProperty({ description: '视频描述', example: 1 })
    description: string;

    @ApiProperty({ description: '当前页面大小', example: 10 })
    user: { id: string, name: string };

    @ApiProperty({ description: '标签', example: 'shader' })
    label: 'shader' | 'effect' | 'game' | 'model' | 'home';

    @ApiProperty({ description: '视频名称', example: '示例视频1' })
    title: string;

    @ApiProperty({ description: '视频基本信息', example: {} })
    videoInfo: { name: string, duration: string, size: string, url: string }

    @ApiProperty({ description: '封面图', example: 'http//.....' })
    coverUrl: string
}

export class updateShaderType {
    @ApiProperty({ description: 'id' })
    _id: string;

    @ApiProperty({ description: '视频描述', example: 1 })
    description: string;

    @ApiProperty({ description: '当前页面大小', example: 10 })
    user: { id: string, name: string };

    @ApiProperty({ description: '标签', example: 'shader' })
    label: 'shader' | 'effect' | 'game' | 'model' | 'home';

    @ApiProperty({ description: '视频名称', example: '示例视频1' })
    title: string;

    @ApiProperty({ description: '视频基本信息', example: {} })
    videoInfo: { name: string, duration: string, size: string, url: string }

    @ApiProperty({ description: '封面图', example: 'http//.....' })
    coverUrl: string
}